/**
 * Created by wangle on 2018/4/17.
 */
qui(
    function (require, exports, module) {

        RecordCol.Dao = $.extend({}, EpgWeb.Dao, {
            deleteRecordCol: function (sendData, handler) {
                this.sendAjax(RecordCol.urlConfig.doColDelUrl, "post", sendData, handler, "/recordRPC/col/delete");
            },
            addRecordCol: function (sendData, handler) {
                this.sendAjax(RecordCol.urlConfig.doColSaveUrl, "post", sendData, handler, "/recordRPC/col/save");
            },
            editRecordCol: function (sendData, handler) {
                this.sendAjax(RecordCol.urlConfig.doColEditUrl, "post", sendData, handler, "/recordRPC/col/update");
            },
            getRecordCol: function (entityId, handler) {
                this.sendAjax(RecordCol.urlConfig.getColUrl, "post", {id: entityId}, handler, "/recordRPC/col/list");
            },
            getRecordColInfo: function (sendData, handler) {
                this.sendAjax(RecordCol.urlConfig.getColUrlInfo, "post", sendData, handler, "/recordRPC/col/info");
            },
            getRecordChannelList :function(sendData,handler){
                this.sendAjax(RecordCol.urlConfig.getRecordChannelUrl ,"post",sendData,handler,"/record/channel/list");
            }
        });
        RecordCol.Dao.cfgName = {
            logType: "ticket_log",
            workType: "ticket_worker"
        }
    }
);
